package s.k.gui.webtest;

//import S.K.GUITest.BrowserWindow;
import s.k.gui.webtest.BrowserType;
import s.k.gui.webtest.log.MyLogger;

public interface BrowserWindow {

	static MyLogger logger = MyLogger.getLogger(BrowserWindow.class);

	public String getHandle();


	public String getUrl();

	public void refresh();

	public void close();

	
	public void goForward();
	
	public void goBack();

	
	public BrowserType getEngineType();

	public void openNewWindow(String url);

	
	public void open(String url);

	public SeleniumDriver getDriver();


	public void focus();

	
	public void maxSizeWindow();

	/**
	 *(xLocation,xLocation)<br>
	 * 
	 * @param xLocation
	 *        
	 * @param yLocation
	 *            
	 */
	public void moveWindowTo(int xLocation, int yLocation);

	/**
	 *(horizonSize,verticalSize)<br>
	 * 
	 * @param horizonSize
	 *        
	 * @param verticalSize
	 *         
	 */
	public void resizeTo(int horizonSize, int verticalSize);

	
	public void start();

	
	public String dealAlert();

	
	public String dealPrompt(String input, boolean isYes);

	
	public String dealConfirm(boolean isYes);

	
	public void quit();

	
	public void TakeScreenshot(String fileName);
}
